package com.uniview.util;

import org.apache.commons.dbcp.BasicDataSource;
import org.apache.log4j.Logger;

public class ChangePwdBasicDataSource extends BasicDataSource {
	
	Logger logger = Logger.getLogger(ChangePwdBasicDataSource.class);
	
	public ChangePwdBasicDataSource() {
        super();
    }
	
	@Override
	public void setPassword(String password){
		try{
			this.password = DESUtil.decrypt(password);
		}catch(Exception e){
			logger.error("数据库密码解密异常",e);
		}
	}
}
